package com.bh.common.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bh.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 实体类基础类
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BhtmsBaseEntity extends DictLabelVo implements Serializable {

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Excel(name = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Integer status;

    private String createName;

    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String modifyName;

    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;

    @Excel(name = "备注")
    private String description;
    //角色
    @Excel(name = "名称")
    private String name;
    //代码
    @Excel(name = "代码")
    private String code;
}
